﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using WCFMINERP.Contracts.DataContracts;


namespace WCFMINERP.Contracts.InterFaces
{
    [ServiceContract]
    public interface  ITransferFile
    {

        //[OperationContract]
        //List<TransferFileInfo> GetFilesList(); //获得已经上传的文件列表

        [OperationContract]
        TransferFileInfo GetFile(string fileName); //根据文件名寻找文件是否存在，返回文件的字节长度

        [OperationContract]
        TransferFileInfo UplodaFile(TransferFileInfo file); //上传文件

        [OperationContract]
        TransferFileInfo InitTransferFile(TransferFileInfo ininfo);//初始化连接 检查是否可以上传
        [OperationContract]
        void EndTransfer(string inFileName);//结束改文件传输

        [OperationContract]
        List<TransferFileInfo> GetShopFileList();//获取正在上传的文件

        [OperationContract]
        int CreateUploadQueue(TransferFileInfo ininfo);//添加上传列表

        [OperationContract]
        int StopUploadQueue(TransferFileInfo ininfo);//暂停上传
        [OperationContract]
        int DeleteUploadQueue(TransferFileInfo ininfo);//删除上传

    }
}
